<div class="pageContent">
	
	<form method="post" action="/index.php?act=smotor&st=smotor_add" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<div class="pageFormContent" layoutH="58">

			<div class="unit">
				<label>省：</label>
				<select class="combox" ref="area_id" refUrl="/index.php?act=area&st=get_city_list&v={value}">
					{foreach item=item from=$province}
					<option value="{$item.province}">{$item.province}</option>
					{/foreach}
				</select>
			</div>
			<div class="unit">
				<label>市：</label>
				<select class="combox" name="area_id" id="area_id">
					{foreach item=item from=$city}
					<option value="{$item.area_id}">{$item.city}</option>
					{/foreach}
				</select>
			</div>
			<div class="unit">
				<label>地区码头：</label>
				<input name="area_wharf" type="text" size="30" value="" class="required" errormsg="请输入地区码头"/>
			</div>
			<div class="divider"></div>
			<div class="unit">
				<dl>
					<label>批量上传：</label>
					<dd>
						<input type="file" id="uploadify" class="input-xlarge" name="uploadify" style="margin-left:100px;">	
					</dd>
				</dl>
			</div>

		</div>
		
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>

	</form>

</div>

<script type="text/javascript">
$(function() {
    $('#uploadify').uploadify({
        'buttonText'      	: '.xls或.xlsx 文件',
        'swf'      			: '{$host}/files/js/uploadify/uploadify.swf',
        'uploader' 			: '{$host}/index.php?act=smotor&st=batch',
        'cancelImg'			: '{$host}/files/js/uploadify/uploadify-cancel.png',
        'auto' 				: true,
		'fileTypeExts'		: '*',
		'fileTypeDesc'		: '请选择 .xls或.xlsx 文件',
		'buttonCursor'      : 'pointer',
        'onUploadSuccess' 	: function(file, data, response) {
            var json = eval('('+data+')');
            dialogAjaxDone(json);
        }
    });
});
</script>